<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
			<p:commandButton image="back" ajax="false" immediate="true" style="margin-right:20px;" value="#{adherentmsgs['navigation.back']}" action="/jsf/adherent/listAdherents.xhtml"/>
		
			<p:panel header="#{adherentmsgs['adherent.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="detail" columns="2" styleClass="grid" columnClasses="label,value">
						<h:outputText value="#{adherentmsgs['adherent.adhid.title']}:*" />
							<h:outputText value="#{AdherentComponent.adherent.adhId}"/>
						<h:outputText value="#{adherentmsgs['adherent.adhcin.title']}:" />
							<h:inputText id="adherent_adhcin" value="#{AdherentComponent.adherent.adhCin}" required="false" label="adherent_adhcin" />
						<h:outputText value="#{adherentmsgs['adherent.adhimmatriculation.title']}:" />
							<h:inputText id="adherent_adhimmatriculation" value="#{AdherentComponent.adherent.adhImmatriculation}" required="false" label="adherent_adhimmatriculation" />
						<h:outputText value="#{adherentmsgs['adherent.adhaffiliation.title']}:" />
							<h:inputText id="adherent_adhaffiliation" value="#{AdherentComponent.adherent.adhAffiliation}" required="false" label="adherent_adhaffiliation" />
						<h:outputText value="#{adherentmsgs['adherent.adhdateaffiliation.title']}:" />
							<p:calendar id="adherent_adhdateaffiliation" value="#{AdherentComponent.adherent.adhDateAffiliation}" required="false"  converter="primefacesCalendarConverter" />
						<h:outputText value="#{adherentmsgs['adherent.adhpension.title']}:" />
							<h:inputText id="adherent_adhpension" value="#{AdherentComponent.adherent.adhPension}" required="false" label="adherent_adhpension" />
						<h:outputText value="#{adherentmsgs['adherent.adhsom.title']}:" />
							<h:inputText id="adherent_adhsom" value="#{AdherentComponent.adherent.adhSom}" required="false" label="adherent_adhsom" />
         			<h:panelGroup>
         				<p:commandButton image="save" ajax="false" style="margin-right:20px;" value="#{adherentmsgs['navigation.save']}" action="#{AdherentComponent.saveAdherent(AdherentComponent.adherent)}"/>
         			</h:panelGroup>
				</h:panelGrid>
			</p:panel>

		</h:form>
	</ui:define>
</ui:composition>